package Factory_Pattern.AbstractFactory;

/**
 * @author ZhangJiaKui
 * @classname AbstractFactoryTest
 * @description TODO
 * @date 3/31/2022 3:45 PM
 */
public class AbstractFactoryTest {
    public static void main(String[] args) {
        HuaweiFactory huaweiFactory = new HuaweiFactory();
        huaweiFactory.createProductA().editProduct();
        huaweiFactory.createProductB().addProdcut();
//        huaweiFactory.createProductC();

        XiaomiFactory xiaomiFactory = new XiaomiFactory();
        xiaomiFactory.createProductA().editProduct();
        xiaomiFactory.createProductB().addProdcut();
    }
}
